const { defineConfig } = require('@vue/cli-service')
const path = require('path')
module.exports = defineConfig({
	devServer: {
		hot: true, // 启用热模块替换
		open: true, // 启动项目时自动打开浏览器
		client: {
			overlay: false, // 关闭 overlay 报错提示
		},
	},
	transpileDependencies: true,
	configureWebpack: {
		resolve: {
			alias: {
				'@': path.resolve(__dirname, 'src'),
			},
		},
	},
})
